<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    div {
      width: 200px;
      height: 200px;
      background-color: antiquewhite;
      padding: 50px;
      border: 30px solid darkorange;
      margin: 10px;
    }
  </style>
</head>
<body>
  <div></div>

  <script>
    window.onload = function () {
      var div = document.querySelector('div');
      console.log('scrollHeight = ', div.scrollHeight);
      console.log('clientHeight = ', div.clientHeight);
      console.log('scrollWidth = ', div.scrollWidth);
      console.log('clientWidth = ', div.clientWidth);
    }
  </script>
</body>
</html>